package cn.enjoy.socket.websocket;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * 必须配置ServerEndpointExporter，不然@ServerEndpoint注解不生效
 */
@Configuration
public class WebSocketConfig1 {


	@Bean
	public ServerEndpointExporter serverEndpointExporter(){
		return new ServerEndpointExporter();
	}

}
